package com.hxzon.project;

import java.util.List;

public interface ModelService<M> {
	public void save(M model);
	
	public void saveAll(List<M> models);
	
	public void delete(String id);

	public void delete(M model);
	
	public void deleteAll();
	
	public void deleteAll(List<M> models);

	public M get(String id);
	
	public List<M> getAll();

	public List<M> getAll(long first, long size);

	public List<M> getLike(M model, long first, long size);

	public List<M> getLike(String like, long first, long size);

	public long countAll();

	public long countLike(M model);

	public long countLike(String like);
	
	public String valid(M model);
}
